package com.xingmang.common.dto.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @auther: hansom
 * @Version: 1.0
 * @create 2023/6/19 16:33
 */
@ApiModel("第三方应用新增")
@Data
public class ThirdAppSaveDTO {
    @ApiModelProperty(value = "应用名称",required = true)
    @NotEmpty(message = "应用名称不能为空")
    private String appName;
    @ApiModelProperty(value = "应用图标",required = true)
    @NotEmpty(message = "应用图标不能为空")
    private String appLogo;
    @ApiModelProperty(value = "应用所属分类ID",required = true)
    @NotNull(message = "分类ID不能为空")
    @Min(value = 1,message = "分类ID最小为1")
    private Long categoryId;
    @ApiModelProperty(value = "应用URL",required = true)
    @NotEmpty(message = "应用URL不能为空")
    private String appUrl;
    @ApiModelProperty(value = "排序")
    private Integer appOrder;
}
